﻿<UserControl 
    x:Class="WGM_Silverlight.Views.OptionsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Loaded="OnLoaded"
    >
    <Grid x:Name="LayoutRoot" Background="Black">
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>
        <Border HorizontalAlignment="Left" Margin="5" BorderThickness="1" BorderBrush="#3FFFFFFF" CornerRadius="5,5,5,5">
            <ScrollViewer VerticalAlignment="Stretch" HorizontalAlignment="Left" HorizontalContentAlignment="Left" VerticalContentAlignment="Top" VerticalScrollBarVisibility="Auto" Style="{StaticResource ScrollViewerStyle1}">
                <StackPanel  Margin="5,5,5,5" VerticalAlignment="Top" HorizontalAlignment="Left" >
                    <TextBlock Foreground="White" FontSize="10" FontFamily="Verdana"  Text="Display Name"  HorizontalAlignment="Center"   ></TextBlock>
                    <TextBox Name="_onlineOptionsDisplayNameTB"/>
                    <TextBlock Foreground="White" FontSize="10" FontFamily="Verdana"  Text="Display Status"  HorizontalAlignment="Center"   ></TextBlock>
                    <TextBox Name="_onlineOptionsDisplayStatusTB" />
                    <TextBlock Foreground="White" FontSize="10" FontFamily="Verdana"  Text="Font Name"  HorizontalAlignment="Center"   ></TextBlock>
                    <ComboBox x:Name="_onlineOptionsFontChooser"  MaxDropDownHeight="200" Width="250" HorizontalAlignment="Stretch"/>
                    <TextBlock Foreground="White" FontSize="10" FontFamily="Verdana"  Text="Font Size"  HorizontalAlignment="Center"   ></TextBlock>
                    <Slider Width="190" Name="_onlineOptionsFontSize"  Minimum="5" Maximum="20" HorizontalAlignment="Stretch" ToolTipService.Placement="Top" ValueChanged="Slider_ValueChanged"  />
                    <TextBlock Foreground="White" FontSize="10" FontFamily="Verdana"  Text="Font Colour (Red)"  HorizontalAlignment="Center"   ></TextBlock>
                    <Slider Width="190" x:Name="_onlineOptionsFontColourR"   Minimum="0" Maximum="255"  Height="Auto" HorizontalAlignment="Stretch" ToolTipService.Placement="Top"  ValueChanged="Slider_ValueChanged" />
                    <TextBlock Foreground="White" FontSize="10" FontFamily="Verdana"  Text="Font Colour (Green)"  HorizontalAlignment="Center"   ></TextBlock>
                    <Slider Width="190" x:Name="_onlineOptionsFontColourG"  Minimum="0" Maximum="255"  Height="Auto" HorizontalAlignment="Stretch"  ToolTipService.Placement="Top" ValueChanged="Slider_ValueChanged" />
                    <TextBlock Foreground="White" FontSize="10" FontFamily="Verdana"  Text="Font Colour (Blue)"  HorizontalAlignment="Center"   ></TextBlock>
                    <Slider Width="190" x:Name="_onlineOptionsFontColourB"  Minimum="0" Maximum="255"  Height="Auto" HorizontalAlignment="Stretch"  ToolTipService.Placement="Top" ValueChanged="Slider_ValueChanged" />
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                        <CheckBox Name="_onlineOptionsIsBold" HorizontalAlignment="Center"   Margin="0" Checked="CheckBox_Changed" Unchecked="CheckBox_Changed" Foreground="Black" >
                            <TextBlock Foreground="White" Text="Bold" FontFamily="Verdana" FontSize="10"/>
                        </CheckBox>
                        <CheckBox HorizontalAlignment="Center" Name="_onlineOptionsIsItalics" Margin="0" Checked="CheckBox_Changed" Unchecked="CheckBox_Changed" Foreground="Black" >
                            <TextBlock Foreground="White" Text="Italics" FontFamily="Verdana" FontSize="10"/>
                        </CheckBox>
                        <CheckBox HorizontalAlignment="Center" Name="_onlineOptionsIsUnderlined" Margin="0" Checked="CheckBox_Changed" Unchecked="CheckBox_Changed" Foreground="Black" >
                            <TextBlock Foreground="White" Text="Underline" FontFamily="Verdana" FontSize="10"/>
                        </CheckBox>
                    </StackPanel>
                </StackPanel>
            </ScrollViewer>

        </Border>


        <StackPanel HorizontalAlignment="Right" Margin="5" Grid.Column="1">
            <Border Cursor="Hand" MouseLeftButtonDown="DisplayImage_MouseDown" x:Name="_onlineOptionsDisplayImage" Width="150" Height="150" ToolTipService.ToolTip="Click to browse for a new image">
                <Border.Background>
                    <ImageBrush x:Name="_userImage" />
                </Border.Background>
            </Border>
            <TextBlock Name="_onlineOptionsClearImgBtn" MouseLeftButtonDown="ClearImgBtn_MouseDown" ToolTipService.ToolTip="Click if you do not want to use a dislay image" Text="Clear Image" FontFamily="Verdana" Foreground="White" FontSize="14"  HorizontalAlignment="Center" Cursor="Hand"/>
        </StackPanel>

        <StackPanel Orientation="Horizontal" Grid.Row="1">
            <TextBlock Foreground="Red" FontSize="16" FontFamily="Verdana" Cursor="Hand"   Text="Reset"  HorizontalAlignment="Left"  x:Name="_onlineOptionsResetBtn" MouseLeftButtonDown="ResetBtn_MouseDown" VerticalAlignment="Bottom" Height="18.23" >

            </TextBlock>
            <TextBlock Foreground="LightGreen" FontSize="15" FontFamily="Verdana" Cursor="Hand"   Text="Commit"  HorizontalAlignment="Right" Margin="10,0,0,0" x:Name="_onlineOptionsDoneBtn" MouseLeftButtonDown="DoneBtn_MouseDown" VerticalAlignment="Bottom"  >

            </TextBlock>
            <TextBlock Cursor="Hand" FontFamily="Verdana" FontSize="15" Foreground="White" Height="18.23" HorizontalAlignment="Right" Margin="10,0,0,0" Name="_onlineOptionsCancelBtn" Text="Cancel" VerticalAlignment="Bottom" Width="58.783" MouseLeftButtonDown="CancelBtn_MouseDown" ></TextBlock>

        </StackPanel>
    </Grid>
</UserControl>
